package com.neo.impatient.C05_Class.C05_07_mainConstructor


//主构造器
class MainCT (val name: String, var age: Int) {
  //主构造器可以执行类中所有的语句
  println("Just main constructor")

}

object MainCT{


  def main(args: Array[String]): Unit = {
    val mainCT = new MainCT("zhao",13)
    println(mainCT.age, mainCT.name)
  }
}